<template>
	<view class="notice">
		<view class="px15 pt20">
			<view class="f26 color-theme fwb ellipsis width100 text--center ">
				{{noticeObj.title}}
			</view>
			<view class="f14 mt10 sgrey" style="line-height: 1.8;">
				<rich-text :nodes="noticeObj.content"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				noticeId:0,
				noticeObj:{
					title:'盛大公链',
					content:'<p>上线哦啦</p>'
				}
			}
		},
		onLoad(options) {
			this.noticeId = options.itemid
			// this.noticeInfo()
		},
		methods:{
			async noticeInfo(){
				let headerUUid = this.randomString(Math.ceil(Math.random()*10))
				let { data } = await this.$http.post('home.messageInfo', { messageId: this.noticeId }, {  isAuth: true,header:{phoneUuid :headerUUid} , tipConfig: { isLoading: false } })
				this.noticeObj = data
			},
		}
	}
</script>

<style lang="less">
	.notice{
		
	}
</style>
